class ParkingSystem {
    private readonly _cars: [number, number, number] = [0, 0, 0];
    constructor(big: number, medium: number, small: number) {
        this._cars = [big, medium, small];
    }

    addCar(carType: number): boolean {
        if (this._cars[carType - 1] > 0) {
            this._cars[carType - 1]--;
            return true;
        }

        return false;
    }
}
